#!/bin/sh

# Build zipfiles for Pango on Win32: separate runtime and developer packages

ZIP=/tmp/pango-@PANGO_VERSION@-`date +%Y%m%d`.zip
DEVZIP=/tmp/pango-dev-@PANGO_VERSION@-`date +%Y%m%d`.zip
cd @prefix@

DLLDIR=lib
[ -f bin/libpango-@PANGO_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll ] && DLLDIR=bin

rm $ZIP
zip $ZIP -@ <<EOF
bin/pango-querymodules.exe
etc/pango/pango.aliases
etc/pango/pango.modules
$DLLDIR/libpango-@PANGO_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
$DLLDIR/libpangoft2-@PANGO_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
$DLLDIR/libpangowin32-@PANGO_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
EOF

zip $ZIP lib/pango/@PANGO_MODULE_VERSION@/modules/*.dll

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
include/pango-1.0
lib/libpango-@PANGO_API_VERSION@.dll.a
lib/pango-@PANGO_API_VERSION@.lib
lib/libpangoft2-@PANGO_API_VERSION@.dll.a
lib/pangoft2-@PANGO_API_VERSION@.lib
lib/libpangowin32-@PANGO_API_VERSION@.dll.a
lib/pangowin32-@PANGO_API_VERSION@.lib
lib/pkgconfig/pango.pc
lib/pkgconfig/pangowin32.pc
lib/pkgconfig/pangoft2.pc
share/gtk-doc/html/pango
EOF
